//
//  BBSlideController.m
//  TanTanDemo
//
//  Created by wei1 on 2016/12/2.
//  Copyright © 2016年 qge. All rights reserved.
//

#import "BBSlideController.h"
#import "SlidableView.h"
@interface BBSlideController ()

@property (nonatomic)SlidableView *selfView;

@end

@implementation BBSlideController


-(void)loadView{
    [super loadView];
    self.selfView = [[SlidableView alloc]init];
    self.view = self.selfView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    //[self.view setBackgroundColor:[UIColor redColor]];
    self.title = @"低仿探探";
    self.view.backgroundColor = [UIColor lightGrayColor];
    UIView *yellowView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 250, 400)];
    yellowView.backgroundColor = [UIColor yellowColor];
    yellowView.tag = 1;
    UIView *blackView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 250, 400)];
    blackView.backgroundColor = [UIColor blackColor];
    blackView.tag = 2;

    UIView *redView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 250, 400)];
        redView.backgroundColor = [UIColor redColor];
    redView.tag = 3;
    UIView *greenView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 250, 400)];
    greenView.backgroundColor = [UIColor greenColor];
    greenView.tag = 4;
    UIView *blueView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 250, 400)];
    blueView.backgroundColor = [UIColor blueColor];
    blueView.tag = 5;
    NSArray<UIView *> *views = @[yellowView,blackView,redView,greenView,blueView];
    [self.selfView addViews:views];
    
    
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
